{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "slideshow": {
     "slide_type": "slide"
    }
   },
   "source": [
    "# Jupyter Notebook学习笔记\n",
    "\n",
    "## 重要网址信息\n",
    "- [jupyter notebook官方网址](https://jupyter.org/index.html)\n",
    "- [jupyter notebook英文文档](https://jupyter-notebook.readthedocs.io/en/stable/index.html)\n",
    "- [27 个Jupyter Notebook的小提示与技巧 ](http://liuchengxu.org/pelican-blog/jupyter-notebook-tips.html)\n",
    "\n",
    "## 更换主题\n",
    "|步骤|命令|备注|\n",
    "|--|--|--|\n",
    "|第一步|!pip install --upgrade jupyterthemes|安装主题|\n",
    "|第二部|!jt -t oceans16 -T|更换oceans16主题 -T 工具栏不会消失\n",
    "|第三部|!jt -r|回复默认设置\n",
    "|第四部|!jt -l|查看有那些主题\n",
    "\n",
    "## 重要插件安装\n",
    "### 安装插件库nbextension\n",
    "|步骤|命令|备注|\n",
    "|--|--|--|\n",
    "|第一步|!conda install -c conda-forge jupyter_contrib_nbextensions|安装插件选项|\n",
    "\n",
    "```\n",
    "# 方法一：\n",
    "conda install -c conda-forge jupyter_contrib_nbextensions\n",
    "# 方法二:\n",
    "pip install jupyter_contrib_nbextensions\n",
    "```\n",
    "### 提高效率插件\n",
    "1. RISE插件PPT制作\n",
    "\n",
    "```\n",
    "conda install -c conda-forge rise\n",
    "```\n",
    "   - [RISE安装细节](https://blog.csdn.net/blmoistawinde/article/details/85009603)\n",
    "\n",
    "2. Hinterland 代码补全\n",
    "3. Table Content 分页面展示\n",
    "4. dmind 思维导图 没有安装成功\n",
    "\n",
    "### 快捷键\n",
    "1. Ctrl + Shift + F 打开控制面板\n",
    "2. Ctrl + u 编辑模式撤销操作；U命令模式撤销操作\n",
    "\n",
    "## Markdown语法格式\n",
    "\n",
    "## Jupyter笔记本内OS操作\n",
    "\n",
    "|命令|含义|备注|\n",
    "|:--:|:--:|:--:|\n",
    "|!conda create -n py36 python=3.6|安装3.6py环境|安装好后激活：activate python36|\n",
    "|!jupyter notebook --version|查看笔记本版本|\"!\"含义是进入cmd、bash命令行|\n",
    "|file = !dir|dir显示值传递给file变量|window系统下；type(file)类型：IPython.utils.text.SList|\n",
    "|!jt -h|显示主题种类|\n",
    "|!jt -t 主题名称 -T|换Jupyter笔记本主题|工具栏可以View--》Tool bal显示|\n",
    "|!jt -r|主题重置| \n",
    "|%lsmagic|显示所有笔记本魔法方法||\n",
    "|%alias?、os.path？|显示文档帮助信息|\"?\"含义查询命令帮助文档|\n",
    "|os.path??|显示os.path源代码|\"??\"含义显示源代码|\n",
    "|_ + b| _ 应用上一个cell输出结果|\n",
    "|%whos|查看当前变量空间变量|\n",
    "|%reset -f|重置变量空间|\n",
    "|%hist|历史命令|\n",
    "|%run ylc.py| 运行 ylc.py文件|\n",
    "|%ls、%cd、%pwd、%mkdir|\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Variable   Type    Data/Info\n",
      "----------------------------\n",
      "a          int     2\n"
     ]
    }
   ],
   "source": [
    "%whos"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "7"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "_ +4 "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "273.067px"
   },
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
